<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        // 100以内所有的数，每10个换行

        //    每逢10就换行  被10整除

        //  1 每个数都要打印
        //  2 遇到10的倍数就br

        for(var i = 1 ; i <= 100 ; i++) {
            document.write(i + '&nbsp;&nbsp;&nbsp;&nbsp;') ;
            if(i % 10 === 0) {
                document.write('<br>');
            }
        }


        

    </script>
    
</body>
</html>